var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    classtab: []
  },

  onLoad: function (options) {
    wx.request({
      url: app.globalData.url +'/index.php?_m=shop/category/listing',
      data: {},
      success: (res) => {
        this.setData({
          classtab: res.data.data
        })
      }
    })
  },
  onShareAppMessage: function () {
    app.globalData.uid = app.globalData.uid || wx.getStorageSync('uid') || 0;
    return {
      title: '深圳智汇创想科技有限责任公司员工福利购!',
      path: '/pages/index/index?fid=' + app.globalData.uid
    }
  }

})